package org.jypj.dev.model;

import com.google.gson.Gson;

/**
 * @author chenyu
 */
public class ErrorWork implements java.io.Serializable {

    private static final long serialVersionUID = 1L;

    private String id; //主键ID
    private String loginId; //登录ID
    private String userWorkId; //用户工序ID
    private String trainCode; //车次
    private String workId; //工序ID
    private String workName; //工序名称
    private String planFinishTime; //计划完成时间
    private int duration; //超时时长
    private String createTime; //创建时间
    private String planDate; //计划日期

    private String userName;//用户姓名
    private String roadName;//交路名称
    private String trainNum;//车组号

    public String getId() {
        return this.id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getLoginId() {
        return this.loginId;
    }

    public void setLoginId(String loginId) {
        this.loginId = loginId;
    }

    public String getUserWorkId() {
        return this.userWorkId;
    }

    public void setUserWorkId(String userWorkId) {
        this.userWorkId = userWorkId;
    }

    public String getTrainCode() {
        return this.trainCode;
    }

    public void setTrainCode(String trainCode) {
        this.trainCode = trainCode;
    }

    public String getWorkId() {
        return this.workId;
    }

    public void setWorkId(String workId) {
        this.workId = workId;
    }

    public String getWorkName() {
        return this.workName;
    }

    public void setWorkName(String workName) {
        this.workName = workName;
    }

    public String getPlanFinishTime() {
        return this.planFinishTime;
    }

    public void setPlanFinishTime(String planFinishTime) {
        this.planFinishTime = planFinishTime;
    }

    public int getDuration() {
        return this.duration;
    }

    public void setDuration(int duration) {
        this.duration = duration;
    }

    public String getCreateTime() {
        return this.createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getPlanDate() {
        return this.planDate;
    }

    public void setPlanDate(String planDate) {
        this.planDate = planDate;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getRoadName() {
        return roadName;
    }

    public void setRoadName(String roadName) {
        this.roadName = roadName;
    }

    public String getTrainNum() {
        return trainNum;
    }

    public void setTrainNum(String trainNum) {
        this.trainNum = trainNum;
    }

    @Override
    public String toString() {

        return new Gson().toJson(this);
    }

}